<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<ul class="sidebar-menu" id="root_menu">
    <li class="header">管理菜单</li>
    <li>
        <a href="/admin/index">
        <i class="fa fa-dashboard"></i> <span th:text="首页"></span>
        </a>
    </li>
    <li th:if="${p1.name != '首页'}" th:class="${resourceIds.contains(p1.id)}?'treeview active':'treeview'" th:each="p1:${session.resourceTree.childs}">
        <a th:href="${p1.link}">
            <i th:class="${'fa fa-'+p1.icon}"></i> <span th:text="${p1.name}"></span>
            <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu" id="global">
            <li th:each="p2:${p1.childs}" th:class="${resourceIds.contains(p2.id)}?'active':''"><a th:href="${p2.link}"><i class="fa fa-circle-o"></i><span th:text="${p2.name}"></span></span></a></li>
        </ul>
    </li>




    <li class="header">常用菜单</li>
    <li><a href="/" target="_blank"><i class="fa fa-circle-o text-success"></i> <span>网站首页</span></a></li>
    <li><a href="#"><i class="fa fa-circle-o text-info"></i> <span>清空缓存</span></a></li>
    <li><a href="http://www.iqismart.com" target="_blank"><i class="fa fa-circle-o text-yellow"></i> <span>官方求助</span></a></li>
</ul>
